package com.ssd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 礼品表
 * </p>
 *
 * @author author
 * @since 2024-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("gift")
@ApiModel(value="Gift对象", description="礼品表")
public class Gift implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "礼品ID")
    @TableId(value = "gift_id", type = IdType.NONE)
    private Long giftId;

    @ApiModelProperty(value = "礼品名称")
    private String giftName;

    @ApiModelProperty(value = "礼品图片")
    private String giftImage;

    @ApiModelProperty(value = "礼品兑换所需的积分")
    private Integer requiredPoints;

    @ApiModelProperty(value = "状态：1 上架，2 下架")
    private Integer status;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "已兑换数量")
    private Integer sales;

    @ApiModelProperty(value = "礼品详情")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人id")
    private Long userId;
    @ApiModelProperty(value = "创建人手机号码")
    private String userPhone;
    @ApiModelProperty(value = "创建人名称")
    private String userName;

    @ApiModelProperty(value = "修改人id")
    private Long updateId;


}
